home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-08 | 1.6 KB | 39 lines | [TEXT/R*ch] |
- /*
- ** Newton Developer Technical Support Sample Code
- **
- ** SoupDrink, code to communicate with desktop DIL applications
- **
- ** by David Fedor, Rob Langhorne and Christopher Bell
- **
- ** Copyright © 1995-1996 by Apple Computer, Inc. All rights reserved.
- **
- ** You may incorporate this sample code into your applications without
- ** restriction. This sample code has been provided "AS IS" and the
- ** responsibility for its operation is 100% yours. You are not
- ** permitted to modify and redistribute the source as "DTS Sample Code."
- ** If you are going to re-distribute the source, we require that you
- ** make it clear in the source that the code was descended from
- ** Apple-provided sample code, but that you've made changes.
- */
-
-
- This is a Newton package which communicates with the MacOS or Windows
- SoupDrink applications, as well as the DILette sample application, all
- of which you probably also got with this sample code.
-
-
- SoupDrink can connect over ADSP or the serial port (using either straight
- serial or MNP). It expects one of three commands from the desktop machine:
- "DRNK", "NAME", or "HELO".
-
- * "DRNK" will initiate a "soup drink" - the contents of a soup will be
- transmitted to the desktop computer through a sequence of commands sent
- back and forth.
-
- * "NAME" means a frame is being sent from the desktop which should be
- added to the Names soup.
-
- * "HELO" causes SoupDrink to respond "Hello" to the desktop, then
- immediately drop the connection. This is primarily for use by DILette to
- demonstrate that basic communications were successful.
-